package cn.keduox.entity;

import cn.keduox.annotation.Column;
import cn.keduox.annotation.Id;
import cn.keduox.annotation.Table;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;

/**
 * User: Yongman
 * Date: 2018/1/2
 * 首页推荐类型
 */
@Table(name = "book_rec_type")
public class BookRecType implements Serializable{
    /**
     * id
     */
    @Id(name = "id")
    @Column(name = "id")
    private String id;
    /**
     * 推荐类型
     */
    @Column(name = "type")
    private String type;

    /**
     * 创建人
     */
    @Column(name = "create_by")
    private String createBy;
    /**
     * 创建时间
     */
    @Column(name = "create_time")
    private Timestamp createTime;
    /**
     * 更新人
     */
    @Column(name = "update_by")
    private String updateBy;
    /**
     * 更新时间
     */
    @Column(name = "update_time")
    private Timestamp updateTime;
    /**
     * 删除标记
     */
    @Column(name = "del_flag")
    private Integer delFlag;
    /**
     * 第二级
     */
    private List<BookRec> bookRecList = new ArrayList<>();

    public Integer getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(Integer delFlag) {
        this.delFlag = delFlag;
    }

    public List<BookRec> getBookRecList() {
        return bookRecList;
    }

    public void setBookRecList(List<BookRec> bookRecList) {
        this.bookRecList = bookRecList;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public Timestamp getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Timestamp createTime) {
        this.createTime = createTime;
    }

    public String getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }

    public Timestamp getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Timestamp updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getDelFalg() {
        return delFlag;
    }

    public void setDelFalg(Integer delFalg) {
        this.delFlag = delFalg;
    }
}
